import request from '@/utils/request'

// 查询打印位置列表
export function listPosition(query) {
  return request({
    url: '/manage/position/list',
    method: 'get',
    params: query
  })
}

// 查询打印位置详细
export function getPosition(id) {
  return request({
    url: '/manage/position/' + id,
    method: 'get'
  })
}

// 新增打印位置
export function addPosition(data) {
  return request({
    url: '/manage/position',
    method: 'post',
    data: data
  })
}

// 修改打印位置
export function updatePosition(data) {
  return request({
    url: '/manage/position',
    method: 'put',
    data: data
  })
}

// 删除打印位置
export function delPosition(id) {
  return request({
    url: '/manage/position/' + id,
    method: 'delete'
  })
}
// 打印位置选择项
export function getPrintPositionList(query) {
  return request({
    url: '/manage/position/getPrintPositionList',
    method: 'get',
    params: query
  })
}
